﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using System.Xml.Serialization;

namespace Tomahawk.Runtime.Rendering.Particles
{
    public class ParticleSourcePoint : ParticleSource
    {
        #region Serializable Properties
        [XmlElement("Velocity")]
        public Vector3 velocity = Vector3.Zero;
        #endregion
        
        public override Vector3 GenerateParticlePosition(ref Matrix worldMatrix)
        {
            return Vector3.Transform(Vector3.Zero, worldMatrix);
        }

        public override Vector3 GenerateParticleVelocity(ref Matrix worldMatrix)
        {
            return Vector3.TransformNormal(AddNoiseToVelocity(ref velocity), worldMatrix);
        }
    }
}
